import { ISceneInfo } from "../../core_tgx/base/SceneUtils";
import { SceneDef } from "../../scripts/SceneDef";

export interface ISubGame {
    id: string,
    name: string,
    entry: ISceneInfo,
}

let subGameConf: ISubGame[] = [
    {
        id: 'lobby',
        name: '大厅',
        entry: null,
    },
    {
        id: 'billiards',
        name: '台球',
        entry: SceneDef.LOBBY_BILLIARDS,
    },
    {
        id: 'gomoku',
        name: '五子棋',
        entry: SceneDef.LOBBY_GOMOKU,
    },
];

export function getSubGameConf(subgameId: string) {
    for (let i = 0; i < subGameConf.length; ++i) {
        let conf = subGameConf[i];
        if (conf.id == subgameId) {
            return conf;
        }
    }
}